package cn.ffcs.product.service;

import java.io.File;
import java.util.List;

import cn.ffcs.base.service.IBaseService;
import cn.ffcs.common.model.Attach;
import cn.ffcs.product.model.ProductReference;

/**
 * 产品资料服务层接口<br/>
 * <table>
 * <tr>
 * <td>负责人/principal:</td>
 * <td colspan="2">liuzhh</td>
 * <tr>
 * <td>修改记录/revision:</td>
 * <td colspan="2"></td>
 * </tr>
 * <tr>
 * <td>日期:</td>
 * <td>修改人:</td>
 * <td>修改说明:</td>
 * </tr>
 * <tr>
 * <td></td>
 * <td></td>
 * <td></td>
 * </tr>
 * </table>
 * @author liuzhh
 * @version $Id$
 */
public interface IProductReferenceService<P extends ProductReference> extends
        IBaseService<P>
{
    /**
     * 保存产品资料操作
     */
    public boolean saveProductReferenceInfo(
            String contextPath,
            P productReference,
            List<File> uploads,
            List<String> fileNames,
            String[] publishIDs,
            String[] attachIDs,
            String[] delIDs,
            List<String> isPublishs,
            List<String> isFtp);
    
    /**
     * 
     * TODO 保存附件
     * @param attach
     */
    public void saveAttach(Attach attach);
}
